#ifndef USERCONTROLLER_H
#define USERCONTROLLER_H

#include"../poco/user.h"
#include"../poco/windowInfo.h"
#include"../poco/saleBase.h"
#include"../poco/orderRoleBase.h"
#include"../poco/organizationInfo.h"
#include"windowcontroller.h"
#include<vector>
using std::vector;

class UserController
{
public:
    UserController();

    //用户登录，返回是否登录成功，以及用户信息查询查询，用户名密码错误则返回false
    virtual bool login(User& user)=0;

    User getUser(){return user;}

protected:
    //当前用户
    User user;


};

#endif // USERCONTROLLER_H
